var html5mode = false;

var project_name = 'xwm';
var shopmenu_viewurl = "view";//shopmenu view

var privilege="http://inner.test.shuwang.info/mall/privilege/";
var mallurl = "http://inner.test.shuwang.info/mall/mall/";
var mallorder = "http://inner.test.shuwang.info/mall/mallorder/";
var verificationurl = 'http://inner.test.shuwang.info/mall/verification/';
var uc_baseurl = "http://inner.test.shuwang.info/mall/usercenter/";
var uploadUrl = "http://sfcommon.test.shuwang.info/fileupload/upload/1010";
var sso_baseurl = "http://gw.test.shuwang.info/security/";//统一登录接口

//景洋的调取微信接口认证服务
var wx_jssdkurl = "http://opera.test.shuwang.info/profit/";

var wxucUrl ='http://114.55.90.31:81/ucauth/';

var tempwxuserinfo = "jsapi/webauth";
var mall_userauth = {
    userauth_url: "http://inner.test.shuwang.info/operator/userauth/",
    memopen_url: "http://opera.test.shuwang.info/profit/",
    wxmp_appid: "wx277ac1ea258fab7a",//微信公众号appid
    component_appid: "wx55cba415e7e88786",//公众号开发者平台appid  易盟科技
};

/*var jumpurl = function(orderid,wxopenid,shopid,deskid){
 var targeturl = "http://mall.test.shuwang.info/orderinshop/orderhistory/"+shopid+"/"+deskid;//回跳地址
 return "http://inner.test.shuwang.info/mall/mallpaycenter/orderspay/create/"+orderid+"?appid="+mall_userauth.wxmp_appid+"&jumpurl="+encodeURIComponent(targeturl);
 };*/
var jumpurl = function(orderid,shopid,appid,paystyle){
    var targeturl = "http://opera.test.shuwang.info/unmanmall/scan?appid=wxd58951ae0414cb55&shopid=663727486";//回跳地址
    return "http://inner.test.shuwang.info/mall/mallpaycenter/orderspay/create/"+orderid+"?appid="+mall_userauth.wxmp_appid+"&backurl="+encodeURIComponent(targeturl)+"&jumpurl="+encodeURIComponent(targeturl)+"&paystyle="+paystyle+"&directpay=true";
};

var payplateurl = function(userid){
    var appid = "wx277ac1ea258fab7a";
    var platid = 10000;
    var payurl = "http://pay.shuwang.info/cashier/testrecharge?platid="+platid+"&userid="+userid+"&backurl=http://mall.test.shuwang.info/wmapp/?access=661406f326ce2c4d033b0a7602916cff#/yuerpay";
    var url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid="+appid+"&redirect_uri="+encodeURIComponent(payurl)+"&response_type=code&scope=snsapi_base&state=#wechat_redirect";
    return url;
};